package com.elitetyc.customview.activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.EditText;
import android.widget.SeekBar;
import android.widget.Toast;

import com.elitetyc.customview.R;
import com.elitetyc.customview.custom.ZmxyBroadView;

public class ZmxyActivity extends AppCompatActivity {

    private ZmxyBroadView zbv_main;
    private SeekBar sb_main;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_zmxy);


        zbv_main = findViewById(R.id.zbv_main);
        zbv_main.setCurrentNum(100);
        zbv_main.setCurrentNumberAnim(100);
        sb_main = findViewById(R.id.sb_main);
        sb_main.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
            @Override
            public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
                zbv_main.setCurrentNum(progress);
                zbv_main.setCurrentNumberAnim(progress);
            }

            @Override
            public void onStartTrackingTouch(SeekBar seekBar) {

            }

            @Override
            public void onStopTrackingTouch(SeekBar seekBar) {

            }
        });
    }


}
